#ifndef __DataTypes_H__
#define __DataTypes_H__

#include "../include/Config.h"


#if defined(ENV_WIN32) || defined(ENV_S60_SIMULATOR)

	typedef __int64					s64;
	typedef int						s32;
	typedef short					s16;
	typedef char					s8;
	typedef unsigned __int64		u64;
	typedef unsigned int			u32;
	typedef unsigned short			u16;
	typedef unsigned char			u8;

#elif defined(ENV_S60)

	typedef long long				s64;
	typedef int						s32;
	typedef short					s16;
	typedef char					s8;
	typedef unsigned long long		u64;
	typedef unsigned int			u32;
	typedef unsigned short			u16;
	typedef unsigned char			u8;

#endif





#define TRUE   1
#define FALSE  0


#define SAFE_DELETE(p)					{if (p) delete p; p = NULL;}
#define SAFE_DELETE_ARRAY(p)			{if (p) delete[] p; p = NULL;}





enum PIXEL_MODE
{
	Pixel_Mode_444 = 0,
	Pixel_Mode_565,
	Pixel_Mode_888_BGR,
	Pixel_Mode_888_RGBA,
};

#endif//__DataTypes_H__